package com.qf.controller;

import com.qf.pojo.resp.BaseResp;
import com.qf.service.QfClassifyServcie;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("课程分类信息控制器")
@RestController
@RequestMapping("/classify")
public class QfClassifyController {
    @Autowired
    QfClassifyServcie qfClassifyServcie;
    @GetMapping("/findAll")
    @ApiOperation(value = "查询所有课程分类信息")
    public BaseResp findAll(){
        return qfClassifyServcie.findAll();
    }
}
